package com.wondream.plumelog.example.log4j2.controller;

import com.wondream.plumelog.example.log4j2.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wangjun
 * @note TestContoller
 * @date 2023-10-23  17:18
 */
@RestController
@RequestMapping("/log4j2/sample/test")
public class TestContoller {
    @Resource
    private TestService testService;

    @RequestMapping("/hello")
    public String hello(@RequestParam String name) {
        return testService.hello(name);
    }

    @RequestMapping("/info")
    public String info() {
        return testService.info();
    }


}
